package com.lakeworks.mapper;

import com.lakeworks.common.domain.system.OprDefeimg;

import java.util.List;

/**
 * lakeMapper接口
 *
 * @author lake
 * @date 2023-02-10
 */
public interface OprDefeimgMapper {
    /**
     * 查询lake
     *
     * @param id lake主键
     * @return lake
     */
    OprDefeimg selectOprDefeimgById(Long id);

    /**
     * 查询lake列表
     *
     * @param oprDefeimg lake
     * @return lake集合
     */
    List<OprDefeimg> selectOprDefeimgList(OprDefeimg oprDefeimg);

    /**
     * 新增lake
     *
     * @param oprDefeimg lake
     * @return 结果
     */
    int insertOprDefeimg(OprDefeimg oprDefeimg);

    /**
     * 修改lake
     *
     * @param oprDefeimg lake
     * @return 结果
     */
    int updateOprDefeimg(OprDefeimg oprDefeimg);


    int updateOprDefeimgByimgId(OprDefeimg oprDefeimg);

    /**
     * 删除lake
     *
     * @param id lake主键
     * @return 结果
     */
    int deleteOprDefeimgById(Long id);

    int deleteOprDefeimgByImgId(Long imgId);

    /**
     * 批量删除lake
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteOprDefeimgByIds(String[] ids);


    List<OprDefeimg> selectDefeByImgId(Long id);


    List<OprDefeimg> selectDefeByProductId(Long oprProductId);
}
